<style>
.content-group {background:#fff;border-radius: 0.5rem;margin-bottom:0.39rem}
.carousel {margin-top:0}
.fui-header:after {
	border-bottom: 0 solid #D9D9D9;
}
.fui-notice:after, .fui-notice:before  {
	border-bottom: 0 solid #D9D9D9;
	border-top: 0 solid #D9D9D9;
}
.bottombg {position: absolute;width:100%;height:3.5rem;border-bottom-right-radius:100% 10rem;border-bottom-left-radius:100% 1rem;}
.topbg {height:4.5rem;}
.topbg.nosearch{height:2.3rem;}
</style>
<div class="fui-page shop-index-page" style="display:block;">
    <div class="fui-content" style="padding-bottom:4rem">
		<div class="topbg" style="position: relative;text-align:center;width:100%;background: url({{tomedia(pagedata.pluginset.topbg) || '../addons/jy_kangxue/resource/images/topbg.jpg'}}) no-repeat 50%;background-size: cover;">
			<div class="fui-header" style="background:none">
				<div class="fui-header-left" style="padding-left:0.5rem;top:2rem">
					<img style="height:1.5rem" ng-src="{{tomedia(pagedata.pluginset.logo)|| '../core/resource/images/nopic.jpg'}}"/>
				</div>
				<div class="title"></div>
			</div>
		</div>
		<div ng-if="pagedata.pluginset.no_hdp!=1" id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true">
					<div class="carousel-inner" role="listbox" style="height:auto">
					<div ng-class="{'item':1,'active':$index==0}" ng-repeat="item in pagedata.banner">						
						<a href="{{item.url}}">
							<img src="{{tomedia(item.picurl) || '../addons/jy_onlineedu/resource/img/hdp01.jpg'}}" style="display: block; width: 100%; height: 100%;">
						</a>
					</div>
					</div>
						<style>
								.fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
								.fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
						</style>
						<div id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 5px; bottom: 10px; ">
							<div class="fui-swipe-bullet" ng-repeat="item in pagedata.banner" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
						</div>
		</div>
		<div ng-if="pagedata.pluginset.bankuai.length>0" class="fui-icon-group noborder col-4 radius">
			<a class="fui-icon-col external" ng-repeat="item in pagedata.pluginset.bankuai" href="javascript:;" ng-click="access_json(item.action)" data-nocache="true">
					<div class="icon">
					<img ng-src="{{tomedia(item.img) || '../core/resource/images/diy/icon/icon_goods.png'}}">
					</div>
					<div class="text">{{item.title}}</div>
			</a>
		</div>
		<div class="fui-cube" style="padding-bottom:0;height:auto">
			<img style="width:100%" ng-src="{{tomedia(pagedata.pluginset.indexad) ||'../addons/jy_kangxue/resource/images/indexad.png'}}"/>
		</div>
		<div style="padding:0">
		<div class="fui-cube" style="padding-bottom:0.3rem;height:auto">
			<img style="width:100%" ng-src="{{tomedia(pagedata.pluginset.titleimg) ||'../addons/jy_kangxue/resource/images/title.jpg'}}"/>
		</div>
		<div ng-if="pagedata.list" class="fui-goods-group block">
			<div ng-include="sys_html('_videolist')"></div>
		</div>
		</div>
		<div ng-if="pagedata.loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
	</div>
</div>
<div ng-if="pagedata.showewm" class="popup">
	<div class="popup-body">
		<div class="popup-bottom">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showewm=false"></i>
			<div class="fui-icon-group noborder col-5" style="padding-top:0.5rem">
				 <div class="fui-list">
					<div class="fui-card" style="margin-left:auto;margin-right:auto;padding-top:0;border-radius:0.5rem">
						<img style="width:8rem;height:8rem;border-radius:0.5rem" src="{{tomedia(pagedata.showitem.ewm) || '../addons/jy_onlineedu/resource/img/code.png'}}"  />
					</div>
				</div>
				<div class="fui-line-title">
					<div class="text text-danger bold" style="margin-bottom: -8px;">———— *  <span style=";font-size:13px">微信扫上面二维码</span> * ————</div>
				</div>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.pagedata.setshowewm=function(item){
	scope.post_json('/index/looklog/id='+item.id,{},function(res){
		if(res=='success'){
			
		}
	});
}
/*var browserRule = /^.*((iPhone)|(iPad)|(Safari))+.*$/;
if (browserRule.test(navigator.userAgent)) {
        window.onpageshow = function(event) {
            if (event.persisted) {
                window.location.reload()
            }
        };
}*/
require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
});
//信息弹窗：
//前端先注册以等待接收消息
require(['jinyun_socket'],function(jinyun_socket){
    jinyun_socket.connect();
    jinyun_socket.onsystem=function(res){
        if(res.message){
			var success_title = '确认';
			if(res.url){
				success_title = '前往查看';
			}
			scope.confirm({
						'message':res.message,
						'success':res.url,
						'success_title':success_title
			});
		}
    }
});
//滚动加载
scope.tool.get_list('jy_onlineedu/index/getlist/keyword='+scope.pagedata.params.keyword,true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_onlineedu/index/getlist/keyword='+scope.pagedata.params.keyword);
}
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>